package com.youle.youleservice.activity;

import android.content.Context;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.View;
import android.view.Window;
import android.view.WindowManager;
import android.widget.TextView;

import com.youle.youleservice.R;
import com.youle.youleservice.constance.Constans;
import com.youle.youleservice.util.DeviceUtil;

public class ForbiddenActivity extends AppCompatActivity {

    TextView mImeiTextView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        requestWindowFeature(Window.FEATURE_NO_TITLE);
        //去除状态栏
        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
                WindowManager.LayoutParams.FLAG_FULLSCREEN);
        setTitle("请联系管理员");
        setContentView(R.layout.activity_forbidden);
        mImeiTextView = findViewById(R.id.imei_txt);
        mImeiTextView.setText("imei:"+ DeviceUtil.getImei(this));
        Constans.mForbiddenActivity = this;
    }

    @Override
    public void onBackPressed() {

    }
}
